<!DOCTYPE html>
<html>
<head>
    <title>订单详情</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.orderno" @on-enter="query" placeholder="订单号"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("orderdetail:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("orderdetail:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("orderdetail:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("orderdetail:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="tOrderDetail" :rules="ruleValidate" :label-width="80">
            <Form-item label="订单编号" prop="orderNo">
                <i-input v-model="tOrderDetail.orderNo" placeholder="订单编号"/>
            </Form-item>
            <Form-item label="产品编号" prop="proId">
                <i-input v-model="tOrderDetail.proId" placeholder="产品编号"/>
            </Form-item>
            <Form-item label="产品名称" prop="proName">
                <i-input v-model="tOrderDetail.proName" placeholder="产品名称"/>
            </Form-item>
            <Form-item label="产品图" prop="proUrl">
                <img :src="tOrderDetail.proUrl" style="width: 100px">
            </Form-item>
            <Form-item label="产品图URL" prop="proUrl">
                <i-input v-model="tOrderDetail.proUrl" placeholder="产品图"/>
            </Form-item>
            <!--<Form-item label="分类名称" prop="cateName">-->
                <!--<i-input v-model="tOrderDetail.cateName" placeholder="分类名称"/>-->
            <!--</Form-item>-->
            <Form-item label="款式编号" prop="styleId">
                <i-input v-model="tOrderDetail.styleId" placeholder="款式编号"/>
            </Form-item>
            <Form-item label="款式名称" prop="styleName">
                <i-input v-model="tOrderDetail.styleName" placeholder="款式名称"/>
            </Form-item>
            <Form-item label="款式图" prop="styleUrl">
                <img :src="tOrderDetail.styleUrl" style="width: 100px">
            </Form-item>
            <Form-item label="款式图URL" prop="proUrl">
                <i-input v-model="tOrderDetail.styleUrl" placeholder="款式图"/>
            </Form-item>
            <Form-item label="数量" prop="num">
                <i-input v-model="tOrderDetail.num" placeholder="数量"/>
            </Form-item>
            <Form-item label="价格" prop="price">
                <i-input v-model="tOrderDetail.price" placeholder="价格"/>
            </Form-item>
            <Form-item label="服务费" prop="rateValue">
                <i-input v-model="tOrderDetail.rateValue" placeholder="服务费" />
            </Form-item>
            <Form-item label="赠送SPC能量" prop="giveEnergy">
                <i-input v-model="tOrderDetail.giveEnergy" placeholder="赠送SPC能量" />
            </Form-item>
            <Form-item label="释放能量SPC" prop="spcFree">
                <i-input v-model="tOrderDetail.spcFree" placeholder="释放能量SPC" />
            </Form-item>
            <Form-item label="团队赠送SPC" prop="giveTeam">
                <i-input v-model="tOrderDetail.giveTeam" placeholder="团队赠送SPC" />
            </Form-item>
            <Form-item label="产品描述" prop="description">
                <i-input v-model="tOrderDetail.description" placeholder="产品描述"/>
            </Form-item>
            <Form-item label="产品类型" prop="type">
                <i-select v-model="tOrderDetail.type" placeholder="产品类型">
                    <i-option :value="1">价格产品</i-option>
                    <i-option :value="2">兑换产品</i-option>
                    <i-option :value="3">余额兑换产品</i-option>
                    <i-option :value="4">Done产品</i-option>
                    <i-option :value="0">其他</i-option>
                </i-select>
            </Form-item>
            <Form-item label="备注" prop="remark">
                <i-input v-model="tOrderDetail.remark" placeholder="备注"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/order/orderdetail.js?_${date.systemTime}"></script>
</body>
</html>